<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>PCMS内容管理系统</title>
<script type="text/javascript" src="<?php echo $_tpl['js']; ?>jquery.js"></script>
<script type="text/javascript" src="<?php echo $_tpl['js']; ?>date/date.js"></script>
<script type="text/javascript" src="<?php echo $_tpl['js']; ?>date/jquery.datePicker.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $_tpl['js']; ?>date/demo.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $_tpl['js']; ?>date/datePicker.css">
<link href="<?php echo $_tpl['css']; ?>admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8">
Date.firstDayOfWeek = 7;
Date.format = 'yyyy-mm-dd';
$(function()
{
	$('.date-pick').datePicker({startDate:'2008-01-01'})
});
</script>
<style>
td{padding:5px;}
.td1{padding:1px;}
</style>
</head>
<body style='width:98%;'>
<center>
<form method="get">
<table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
	<tr>
		<td colspan="16">
			<table width="100%">
				<tr>
					<td class="td1">类型</td>
					<td class="td1"><select name="privilege_id"><option value="">全部</option><?php foreach( $privilege_array as $value ) { ?><option value="<?php echo $value['id']; ?>"<?php if ( $privilege_id == $value['id'] ) echo ' selected'; ?>><?php echo $value['name']; ?></option><?php } ?></select></td>
					<td class="td1">开始</td>
					<td class="td1"><input name="start" id="start" class="date-pick" value="<?php echo $start; ?>" style="width:80px;" readonly /></td>
					<td class="td1">结束</td>
					<td class="td1"><input name="end" id="end" class="date-pick" value="<?php echo $end; ?>" style="width:80px;" readonly /></td>
					<td class="td1">用户名</td>
					<td class="td1"><input type="text" name="username" id="username" value="<?php echo $username; ?>" style="width:70px;"></td>
					<td class="td1"><input type="submit" style="width:50px;" value="提交"></td>
				</tr>
			</table>
		</td>
	</tr>
	<tr>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">时间</span></td>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">操作</span></td>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">用户</span></td>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">IP</span></td>
		<td height="20" align="left" bgcolor="#000000"><span class="bold">备注</span></td>
	</tr>
<?php
	foreach( $data as $index => $value )
	{
		$bgcolor = $index % 2 ? '#323232' : '#272727';
?>
	<tr>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo date( 'Y-m-d H:i:s', $value['ctime'] ); ?></td>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['privilege_name']; ?></td>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['username']; ?></td>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['ip']; ?></td>
		<td height="20" align="left" bgcolor="<?php echo $bgcolor; ?>"><?php echo $value['memo']; ?></td>
	</tr>
<?php
	}
?>
<?php
	if ( isset( $bar ) )
	{
?>
	<tr>
		<td height="20" colspan="16" align="center" bgcolor="#000000">
			<table width="35%"><tr align="center"><td><a href="<?php echo $bar['first_link']; ?>">首页</a></td><td><a href="<?php echo $bar['prev_link']; ?>">上一页</a></td><td><?php echo $bar['current']; ?> / <?php echo $bar['page']; ?></td><td><a href="<?php echo $bar['next_link']; ?>">下一页</a></td><td><a href="<?php echo $bar['last_link']; ?>">尾页</a></td></tr></table>
		</td>
	</tr>
<?php
	}
?>
</table>
</form>
</center>
</body>
</html>